Sun May 16 22:53:47 2004 Matthias Clasen <maclas@gmx.de>
Merged from 2.4
* io-pnm.c (pnm_read_next_value): Don't read integers
partially. (#142584, Kouichirou Hiratsuka)
+Sun May 16 22:53:47 2004 Matthias Clasen <maclas@gmx.de>
+
+ Merged from 2.4
+
+ * io-pnm.c (pnm_read_next_value): Don't read integers
+ partially. (#142584, Kouichirou Hiratsuka)
+
2004-05-10 Matthias Clasen <mclasen@redhat.com>
Merged from 2.4:
*word = '\0';
/* hmmm, there must be more data to this 'word' */
- if (!g_ascii_isspace (*p) && (*p != '#') && (p - inptr < 128))
+ if (p == inend || (!g_ascii_isspace (*p) && (*p != '#') && (p - inptr < 128)))
return PNM_SUSPEND;
/* get the value */